Three-dimensional patterns